<?php
namespace app\common\model;
use think\model\concern\SoftDelete;
class Record extends \think\Model
{
    protected $resultSetType = 'collection';
    use SoftDelete;
    protected $deleteTime = 'delete_time';


    public function AInfo()
    {
        return $this->hasOne('account','id','a_id')->field('id,name,telephone,project,role');
    }

    public function BInfo()
    {
        return $this->hasOne('account','id','b_id')->field('id,name,telephone,project,role,style');
    }

    public function higher(){
        return $this->hasOne('record','b_id','a_id');
    }
}